package FlowGram.Application.CommandHost.FinchActionListeners;

import java.awt.Color;
import java.awt.event.ActionEvent;

import javax.swing.JColorChooser;
import javax.swing.JFrame;

import FlowGram.Application.Parser.Actions.BeakColor;
import FlowGram.Application.Parser.Actions.DropBeeper;

public class DropBeeperListener extends FinchActionListener{
	JFrame frame;
	DropBeeper dropBact;
	
	
	public DropBeeperListener(JFrame frame){
		this.frame = frame;
	}
	
	
	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		dropBact = new DropBeeper();
		Color newColor = JColorChooser.showDialog(null, "Select Color" , new Color(0,0,0));
		dropBact.setColor(newColor);
		
		addCode(dropBact);
		
	}
}
